Number Theory (Integers and Division)
Tags: #◇Problem Solving #◇Number Theory #◇Discrete Math #◇CCDSTRU #◇M9 #◇Cryptography
◇Important Formulas & Core Concepts
Number theory investigates the properties of integers , with fundamental applications across cryptography (RSA, Diffie-Hellman), hashing algorithms, and pseudo-random number generation.
1. Division & Modular Arithmetic
- Divisibility (): For with , divides if and only if there exists an integer such that .
- The Division Algorithm: For integer and positive integer , there exist unique integers (quotient) and (remainder) such that:
- Modular Congruence: Integers and are congruent modulo (), written , if and only if .
- Equivalently: , or for some .
2. Primes, GCD, & Fundamental Theorem of Arithmetic
- Prime Number: An integer whose only positive divisors are and .
- Fundamental Theorem of Arithmetic: Every integer can be expressed uniquely as a product of prime numbers in non-decreasing order:
- Greatest Common Divisor (): The largest positive integer dividing both and . If , and are relatively prime (coprime).
- Least Common Multiple (): Smallest positive integer divisible by both and .
3. Bézout's Identity & Modular Inverses
- Bézout's Theorem: For non-zero integers and , there exist integers and (Bézout coefficients) such that:
- Modular Multiplicative Inverse: An integer is the modular inverse of modulo if:
The inverse exists if and only if .
◇Stepped Algorithmic Traces & Calculations
Calculation 1: Extended Euclidean Algorithm & Modular Inverse
Problem: Find and compute the modular inverse of .
Step 1: Forward Euclidean Division
- (Remainder 0; last non-zero remainder is 1)
Thus, , confirming that is invertible modulo .
Step 2: Extended Back-Substitution for Bézout Coefficients
Express the remainder in terms of and :
Hence, Bézout's Identity is:
Step 3: Extract Modular Inverse
Reducing modulo :
Because the coefficient is negative, add to find the canonical representative in :
Verification: . Notice . Correct!
Calculation 2: Solving a Linear Congruence
Problem: Solve the linear congruence .
Step 1: Find Inverse of 7 Modulo 19
Since , an inverse exists. Use Euclidean algorithm:
Back-substitute:
Thus, .
Step 2: Multiply Both Sides by the Inverse
Verification: . And . Solution is unique modulo 19: .
Calculation 3: Chinese Remainder Theorem (CRT)
Problem: Find the smallest non-negative integer satisfying the system:
Step 1: Verify Pairwise Coprimality
The moduli are pairwise coprime ().
Compute product of moduli:
Step 2: Compute Partial Moduli & Their Inverses
- For :
Find such that . - For :
Find such that . - For :
Find such that .
Step 3: Compute Linear Combination
Reduce modulo :
Step 4: Verification
The unique solution modulo 105 is .
◇References & Navigation
- Previous Topic: ◇Mathematical Induction
- Related Notes: ◇Number Theory, ◇Equivalences, ◇Sums and Sequences
ACTIVE RECALL VERIFICATION
Select an answer to verify conceptual comprehension and reveal the technical rationale.
Under what necessary and sufficient condition does an integer have a modular multiplicative inverse modulo ?
What does Bézout's Identity state for non-zero integers and ?
In the Chinese Remainder Theorem, what condition must the set of moduli satisfy?
If and , what is the product ?
What is the modular multiplicative inverse of modulo ?
If and , which of the following operations is NOT universally valid?
When testing whether is prime using trial division, what is the largest prime divisor that needs to be tested?
What is the solution to ?
For what modulus is valid?
In the Chinese Remainder Theorem example, what is the unique solution modulo 105 for , , and ?